<?php
	class lopbs
	{
		public $MaLop = 0;
		public $TenLop = "";
		public $MaKhoi = 0;
		
		public function Add()
		{
			$db = new lopdb();
			return $db->Add($this->TenLop,$this->MaKhoi);
		}
		
		public function Delete()
		{
			$db = new lopdb();
			return $db->Delete($this->MaLop);
		}
		
		public function Update()
		{
			$db = new lopdb();
			return $db->Update($this->MaLop,$this->TenLop,$this->MaKhoi);
		}
			
		public function GetList()
		{
			$db = new lopdb();
			return $db->GetList($this->MaLop,$this->TenLop,$this->MaKhoi);
		}
		public function GetList_Khoi()
		{
			$db = new lopdb();
			return $db->GetList_Khoi($this->MaLop,$this->TenLop,$this->MaKhoi);
		}
		public function Find()
		{
			$db = new lopdb();
			return $db->Find($this->MaLop,$this->TenLop,$this->MaKhoi);
		}
		
	}
?>